import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },
                /**
                 * 年度目标任务
                 */
                {
                    path: '/target_task_year_make',
                    component: () => import('../components/page/year_target_task/target_mark_year_make/index.vue'),
                    meta: { title: '目标任务年度建立' }
                },
                {
                    path: '/target_task_in',
                    component: () => import('../components/page/year_target_task/target_task_in/index.vue'),
                    meta: { title: '目标任务年度录入' }
                },
                {
                    path: '/target_task_in_job',
                    component: () => import('../components/page/year_target_task/target_task_in/index_job.vue'),
                    meta: { title: '目标任务年度录入' }
                },
                {
                    path: '/target_task_in_depart',
                    component: () => import('../components/page/year_target_task/target_task_in/index_depart.vue'),
                    meta: { title: '目标任务年度录入' }
                },
                {
                    path: '/perspnal_target_task',
                    component: () => import('../components/page/year_target_task/personal_work_task/index.vue'),
                    meta: { title: '个人工作任务统计' }
                },
                {
                    path: '/department_target_task',
                    component: () => import('../components/page/year_target_task/department_work_task/index.vue'),
                    meta: { title: '部门目标任务统计' }
                },
                {
                    path: '/target_task_search',
                    component: () => import('../components/page/year_target_task/target_mask_search/index.vue'),
                    meta: { title: '目标任务查看' }
                },




                /**
                 * 项目进程检测报表
                 */
                {
                    path: 'college_main_process_manage',
                    component: () => import('../components/page/project_procee_check_report/college_key_project_manage/index.vue'),
                    meta: { title: '学院重点项目进程管理' }
                },
                {
                    path: '/college_main_process_search',
                    component: () => import('../components/page/project_procee_check_report/college_key_project_search/index.vue'),
                    meta: { title: '学院重点项目进程查看' }
                },
                {
                    path: '/department_process_manage',
                    component: () => import('../components/page/project_procee_check_report/department_process_manage/index.vue'),
                    meta: { title: '部门项目进程管理' }
                },
                {
                    path: '/department_process_search',
                    component: () => import('../components/page/project_procee_check_report/department_process_search/index.vue'),
                    meta: { title: '部门项目进程查看' }
                },





                /**
                 * 异常处理
                 */
                {
                    path: '/404',
                    component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: { title: '404' }
                },
                {
                    path: '/403',
                    component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: { title: '403' }
                }
            ]
        },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
